package com.have.blog.web.dto;

import com.have.blog.base.dto.BaseDto;
import com.have.blog.base.validator.annotation.NotBlank;
import com.have.blog.base.validator.group.Delete;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Date;
import java.util.List;

@Data
public class CommentDto extends BaseDto<CommentDto> {
    @ApiModelProperty(value = "用户uid")
    private Integer userUid;

    @ApiModelProperty(value = "回复某条评论的uid")
    private Integer toCommentUid;

    @ApiModelProperty(value = "回复某个人的uid")
    private Integer toUserUid;

    @ApiModelProperty(value = "评论内容")
    private String content;

    @ApiModelProperty(value = "博客uid")
    private Integer blogUid;

    @ApiModelProperty(value = "状态")
    private Integer status;

    @ApiModelProperty(value = "一级评论UID")
    private Integer firstCommentUid;

    private String source;

    private Date createTime;
    private UserDto user;
    private UserDto toUser;
    private List<CommentDto> replyList;
    private BlogDto blog;
}
